package com.yitiao.multithread.ticket;

public class MainTest {
    public static void main(String[] args) {
        SellTicket sellTicket = new SellTicket();
        for (int i = 0; i < 4; i++) {
            new Thread(()->{
                for (int j = 0; j < 50; j++) {
                    sellTicket.sale();
                }
            },"thread-"+i).start();
        }

    }
}
